#!/usr/bin/python3
# -*- coding: UTF-8 -*-
"""
输出格式:

"""
year = 2109
event = 'Referendum'
print(f'Results of the {year} {event}')

yes_votes = 42_572_654
no_votes = 43_132_495
percentage = yes_votes / (yes_votes + no_votes)
print('{:-9} YES votes {:2.28%}'.format(yes_votes, percentage))

s = 'Hello, world.'
print(str(s))
print(repr(s))
print(str(1 / 7))
x = 10 * 3.25
y = 200 * 200
s = 'The value of x is ' + repr(x) + ', and y is ' + repr(y) + '...'
print(s)
hello = 'hello, world\n'
hellos = repr(hello)
print(repr((x, y, ('spam', 'eggs'))))

import math

print(f'The value of pi is approximately {math.pi:3f}')
table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 7678}
for name, phone in table.items():
    print(f'{name:10} ==> {phone:10d}')

animals = 'eels'
print(f'My hovercraft is full of {animals}')
print(f'My hovercraft is full of {animals!r}')
